package com.kingsoft.dc.khaos.extender.meta.impl;

import com.kingsoft.dc.khaos.extender.meta.api.DmApiUtils;
import com.kingsoft.dc.khaos.extender.meta.api.DmRequest;
import com.kingsoft.dc.khaos.extender.meta.model.check.DmCheck;
import com.kingsoft.dc.khaos.extender.meta.model.check.ESCheck;
import com.kingsoft.dc.khaos.extender.meta.model.check.MQCheck;

import java.util.List;

/**
 * Created by WANGYING15 on 2019/7/31.
 */
public class DmCheckImpl {
    /**
     * 获取检核规则
     * @param request
     * @return
     */
    public List<DmCheck> getCheckRule(DmRequest request) {
        List<DmCheck> checkRule = DmApiUtils.getCheckRule(request);
        return checkRule;
    }

    public List<DmCheck> getDesignCheckRule(DmRequest request) {
        List<DmCheck> checkRule = DmApiUtils.getDesignCheckRule(request);
        return checkRule;
    }

    /**
     * 获取检核上报ES配置信息
     * @param request
     * @return
     */
    public ESCheck getESCheckInfo(DmRequest request) {
        ESCheck esCheckInfo = DmApiUtils.getESCheckInfo(request);
        return esCheckInfo;
    }

    /**
     * 获取检核上报MQ配置信息
     * @param request
     * @return
     */
    public MQCheck getMQCheckInfo(DmRequest request) {
        MQCheck mqCheckInfo = DmApiUtils.getMQCheckInfo(request);
        return mqCheckInfo;
    }
}
